


#build_ius: clean_ius
build_ius:
	# ncverilog -64bit -elaborate -c -sv -nclibdirname INCA_lib test.sv 
	ncverilog -64bit -elaborate -c -sv +access+rwc -nclibdirname INCA_lib test.sv 
	# irun -64bit -elaborate -c -f flist/top 
	# irun -64bit -elaborate -c -sv -nclibdirname INCA_lib -f top.filelist -access +rwc -NOWARN PMBMDV -NOWARN FUNTSK -NOWARN SAWSTP -NOWARN AAMNSD -NOWARN VARIST 

run_ius: build_ius
	# [ -e cl0_cpu0.tarmac ] && rm cl0_cpu*
	export PROJ_HOME=$(PROJ_HOME) && \
	ncverilog -64bit -R -nclibdirname INCA_lib test.sv  $(GUI) $(RUN_ARG)
	# irun -64bit -R -nclibdirname INCA_lib $(GUI) $(RUN_ARG) 

build_vcs:
	vcs -c -sv +access+rwc test.sv 